package net.lcheng.dao;

import java.util.Date;
import java.util.List;
import net.lcheng.model.PProduct;
import net.lcheng.model.PProductExample;
import net.lcheng.vo.PProductModel;
import org.apache.ibatis.annotations.Param;

public interface PProductMapper {
    /**
     * 获取商品列表搜索
     * @return zwr
     */
    List<PProductModel> getPProductList(@Param("productName") String productName,@Param("shopName") String shopName, @Param("sdate") Date sdate,@Param("edate") Date edate);
    /***
     * 获取总销量最大值
     * @param shopId
     * @return zwr
     */
    List<PProduct> getPProductBySaleCountTotal(@Param("saleCountTotal") Integer saleCountTotal,@Param("shopId") Integer shopId);
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int countByExample(PProductExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int deleteByExample(PProductExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(String productId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int insert(PProduct record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int insertSelective(PProduct record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    List<PProduct> selectByExampleWithBLOBs(PProductExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    List<PProduct> selectByExample(PProductExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    PProduct selectByPrimaryKey(String productId);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") PProduct record, @Param("example") PProductExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int updateByExampleWithBLOBs(@Param("record") PProduct record, @Param("example") PProductExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") PProduct record, @Param("example") PProductExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(PProduct record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int updateByPrimaryKeyWithBLOBs(PProduct record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table p_product
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(PProduct record);
}